package com.feicheng.service;


import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.feicheng.entity.Stock;
import com.feicheng.model.StockAndProduct;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zhennan.liu
 * @since 2022-07-04
 */
public interface IStockService extends IService<Stock> {

    /**
     * 通过产品id和仓库id查询 库存数量
     * @author zhennan.liu
     * @param productId
     * @param warehouseId
     * @return
     */
    Stock selectAllByid(Integer productId, Integer warehouseId);

    /**
     * <p>
     *  服务类
     * </p>
     *
     * @author hao.zhang
     * @since 2022-07-04
     */
    Page<StockAndProduct> getPotionPages(Page<StockAndProduct> page, Wrapper wrapper);

}
